package cn.shop.ylp;

import java.text.SimpleDateFormat;
import java.time.format.DateTimeFormatter;
import java.util.Date;

/**
 * @author yulianpeng
 * @email network_u@163.com
 * Date 2020/9/12
 */
public class PubFun {
    public static SimpleDateFormat formatter= new SimpleDateFormat("yyyy-MM-dd");

    public static String cuurDate(){
        Date date = new Date(System.currentTimeMillis());
        return formatter.format(date);
    }
    public  static  String cuurTime(){
        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("HH:mm:ss");
        return  "00:00:00";
    }
}
